package com.eshop.modules.shop.vo;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;

@ApiModel(description = "app校验升级")
public class AppCheckVersion implements Serializable
{
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("类型 1101 安卓   1102 ios")
    private String type;
    @ApiModelProperty("app版本名称")
    private String versionName;
    
    public String getType() {
        return this.type;
    }
    
    public String getVersionName() {
        return this.versionName;
    }
    
    public void setType(final String type) {
        this.type = type;
    }
    
    public void setVersionName(final String versionName) {
        this.versionName = versionName;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof AppCheckVersion)) {
            return false;
        }
        final AppCheckVersion other = (AppCheckVersion)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$type = this.getType();
        final Object other$type = other.getType();
        Label_0065: {
            if (this$type == null) {
                if (other$type == null) {
                    break Label_0065;
                }
            }
            else if (this$type.equals(other$type)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$versionName = this.getVersionName();
        final Object other$versionName = other.getVersionName();
        if (this$versionName == null) {
            if (other$versionName == null) {
                return true;
            }
        }
        else if (this$versionName.equals(other$versionName)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof AppCheckVersion;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $type = this.getType();
        result = result * 59 + (($type == null) ? 43 : $type.hashCode());
        final Object $versionName = this.getVersionName();
        result = result * 59 + (($versionName == null) ? 43 : $versionName.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "AppCheckVersion(type=" + this.getType() + ", versionName=" + this.getVersionName() + ")";
    }
}
